package com.andova.widget.timequantum

import android.graphics.RectF

internal class TimeQuantum(val id: Long = System.currentTimeMillis()) : RectF() {
    var time: Time? = null

    constructor(l: Float, t: Float, r: Float, b: Float) : this() {
        set(l, t, r, b)
    }

    override fun equals(other: Any?): Boolean = id == (other as? TimeQuantum)?.id
    override fun toString(): String = "TimeQuantum [$id,$time,($left, $top, $right, $bottom)]"
}